package com.moma.chatting.core;

import java.util.concurrent.atomic.AtomicLong;

public class Utility {
	private static int id = 0;
	public synchronized static int getUniqueInteger(){
		id++;
		return id;
	}
	
	private static AtomicLong nextId = new AtomicLong();
	public static long getUniqueLong(){
		return nextId.getAndIncrement();
	}
}
